﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TeacherLoad.Classes
{
    internal class AcademicYear
    {
        private int _id = 0;
        private string _year = "Нет данных для отображения";

        public string Year { get => _year; set => _year = value; }
        public int Id { get => _id; set => _id = value; }

        public AcademicYear() { }

        public AcademicYear(int id, string year)
        {
            Id = id;
            Year = year;
        }

        public override string ToString()
        {
            return Year;
        }
    }
}
